import { ref, reactive, onMounted, watch, computed, toRaw } from "vue";
import { useRoute  } from 'vue-router';

export function usePageType(){
  const route = useRoute();
  const pageType = route.query.type;
  return {
    isEdit: pageType === "update",
    isView: pageType === "query",
    isCreate: pageType === "create",
  }
}